<script setup lang="ts">
    import { ref,computed } from 'vue'
    import type { Ref } from 'vue'
const ac: Ref<string | number> = ref('2020')
ac.value=2020

function chan(event:Event) {
    console.log((event.target as HTMLInputElement).value);
}
const add1=(a: number, b: number):number=>{
    return a+b
}
// console.log(add1(1, 5));
const enum Direction {
    NORTH ,
    SOUTH,
    EAST,
    WEST,
}
let dir: Direction = Direction.NORTH
console.log(dir);

</script>
<template>
<input type="text" @change="chan">
</template>
